package com.article.dao.impl;

import java.util.List;

import com.article.dao.ITreeNodeDAO;
import com.article.entity.TreeNode;

public class TreeNodeDAOImpl extends BaseDAOImpl<TreeNode> implements
		ITreeNodeDAO<TreeNode> {
	
	public static final String TEXT = "text";
	public static final String PARENT_ID = "parentId";
	public static final String LEAF = "leaf";
	public static final String LINK_URL = "linkUrl";
	public static final String ICON_CLS = "iconCls";
	
	public TreeNodeDAOImpl() {
		super(TreeNode.class);
	}

	public List<TreeNode> findByParent(int parentId) {
		return findByProperty(PARENT_ID, parentId);
	}

}
